package com.simpou.commons.utils.lang;

import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * Estrutura que impede que objetos sejam iguais.
 *
 * @author Jonas Pereira
 * @since 2013-10-30
 */
@EqualsAndHashCode(of = "id")
public class NeverEqualsObject<T> {

    private static int curId;
    
    private final int id;
    
    @Getter
    private final T object;

    public NeverEqualsObject(T object) {
        this.id = curId++;
        this.object = object;
    }
    
    
    
}
